package com.study.ming.websocket;

import org.springframework.web.bind.annotation.*;
import org.springframework.web.client.RestTemplate;

/**
 * @author yh
 * @date 2022/10/15 20:38
 **/
@RestController
public class HelloController {

    RestTemplate restTemplate;

    @RequestMapping(value = "/echo2/{str}", method = RequestMethod.GET)
    public String echo2(@PathVariable String str) {
        return str+"this is from gateway echo2";
    }
}
